// package: rewords-server-2024
// filename: consts
// author: diogoxiang@gmail.com
// time: 2024/7/12 下午3:30

package consts

type CtxKey string

// ContextKey 上下文
const (
	ContextHTTPKey     CtxKey = "httpContext" // http上下文变量名称
	ContextKeyCronArgs CtxKey = "cronArgs"    // 定时任务参数
	ContextKeyCronSn   CtxKey = "cronSn"      // 定时任务序列号

	// 请求头
	RequestHeaderAdminUID   = "X-Admin-UID"
	RequestHeaderAdminToken = "X-Admin-Token"

	RequestToken = "token"

	ResponseHeaderServer       = "Server"
	ResponseHeaderRefreshToken = "X-Refresh-Token"
)
